RegularExp::Match2
Section: ET++ method description (n)
Updated: automatically Mon Apr 8 20:18:26 1991
Index
Return to Main Contents
NAME
RegularExp::Match2 - instance method
TEMPLATE
matchedLength = int
Match2(char * string1, char * string2, int size1 = -1, int size2 = -1, int pos = 0, int stopMatchAt = cMaxInt, RegExRegs * regs = NULL)
SPECIFIERS
public
DESCRIPTION
Match2 checks whether the substring starting at pos in the string, which is obtained from the concatenation of string1 and string2, matches the regular expression.
This method as well as the method SearchForward2 and the method SearchBackward2 are only used by the class GapText because the GapText stores its contents internally in two separate strings.
ARGUMENTS
- char * string1
-
first string to be matched
- char * string2
-
second string to be matched
- int size1 = -1
-
the length of the string1 argument. If it is -1, then the length is determined by the terminating zero character.
- int size2 = -1
-
the length of the string2 argument. If it is -1, then the length is determined by the terminating zero character.
- int pos = 0
-
index where to start searching
- int stopMatchAt = cMaxInt
-
how many characters to try
- RegExRegs * regs = NULL
-
after return contains information about (...) subexpressions
RETURN ARGUMENT
- int matchedLength
-
the length of the matched substring or -1 if no match
CATEGORIES
implementation
FILES
- implementation:
-
RegularExp.C
Index
- NAME
-
- TEMPLATE
-
- SPECIFIERS
-
- DESCRIPTION
-
- ARGUMENTS
-
- RETURN ARGUMENT
-
- CATEGORIES
-
- FILES
-
This document was created by
man2html,
using the manual pages.
Time: 00:40:24 GMT, March 30, 2022